import { get, post } from "./request";

const api = {
  GetVoiceList: "/prod-api/monitor/voice/list",
  GetEnvironmentList: "/prod-api/monitor/environment/list",
  GetMonitorList: "/prod-api/monitor/trace/list",
  GetTotalTime: "/prod-api/statistics/time",
  GetStatisticsDevice: "/prod-api/statistics/device",
  GetInfo: "/prod-api/self/info",
  GetStatisticsAlarm: "/prod-api/statistics/monitor",
  GetVoiceLast: "/prod-api/monitor/voice/last",
};

// get
export const apiGetVoiceList = (params) => get(api.GetVoiceLast, params);
export const apiGetEnvironmentList = (params) =>
  get(api.GetEnvironmentList, params);

export const apiGetTotalTime = (params) => get(api.GetTotalTime, params);
export const apiGetStatisticsDevice = (params) =>
  get(api.GetStatisticsDevice, params);
export const apiGetInfo = (params) => get(api.GetInfo, params);
export const apiGetStatisticsAlarm = (params) =>
  get(api.GetStatisticsAlarm, params);
